package com.dongwu.manager.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.dongwu.common.entity.BaseEntity;
import com.dongwu.security.entity.User;

/**
 * <pre>
 * 
 * =============================================================================
 * 日期：yyyyMMdd  担当:
 * 内容:
 * =============================================================================
 * </pre>
 * 
 * @author zhanghui
 */
@Entity
public class ReviewCount extends BaseEntity<String>{

 private long count;
 
	@ManyToOne(cascade = { CascadeType.MERGE, CascadeType.REFRESH })
	@JoinColumn(name = "userid")
	private User user;

	private String productid;
	
	private String deviceid;
	public long getCount() {
		return count;
	}

	public String getDeviceid() {
		return deviceid;
	}

	public String getProductid() {
		return productid;
	}

	public User getUser() {
		return user;
	}

	public void setCount(long count) {
		this.count = count;
	}

	public void setDeviceid(String deviceid) {
		this.deviceid = deviceid;
	}

	public void setProductid(String productid) {
		this.productid = productid;
	}

	public void setUser(User user) {
		this.user = user;
	}



}
